import request from '@/utils/request';

export async function getErrorTypeByPage (params: any) {
    return request('/api/product/getErrorTypeByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addErrorType (params: any) {
    return request('/api/product/addErrorType', {
    method: 'POST',
    data: params,
  });
}

export async function updateErrorType (params: any) {
    return request('/api/product/updateErrorType', {
    method: 'POST',
    data: params,
  });
}

export async function delErrorType (params: any) {
    return request('/api/product/delErrorType', {
    method: 'POST',
    data: params,
  });
}


export async function exportErrorType(params: any) {
    return request('/api/product/exportErrorType', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getErrorTypeByPage, addErrorType, updateErrorType, delErrorType, exportErrorType }
